#include "Reducer.hpp"
#include "polimr.hpp"

Reducer::Reducer()
{
  r = 0;
  crtkey = ""; 
}

Reducer::~Reducer()
{
}

void Reducer::setKey(string key)
{
  this->crtkey = key; 
}

void Reducer::emit(string result)
{
  MapReduce::emit_final(this->r, this->crtkey, result); 
}

void Reducer::setRid(int r)
{
  this->r = r; 
}
